package com.example.es.springbootes.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;


/**
 * indexName 不能用下划线
 */
@Data
@Document(indexName = "product-index",type = "product")
public class Product {
    @Id
    private Integer id;

    private String name;

    private String desc;

    private String typeName;

    private String msgId;


}
